package com;

public class Message<T> {
	private T entity;
	private String message;
	private boolean success;
	private Integer status;

	public T getEntity() {
		return entity;
	}

	public void setEntity(T entity) {
		this.entity = entity;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Message(T entity, String message, boolean success) {
		this.entity = entity;
		this.message = message;
		this.success = success;
	}

	public Message(String message, boolean success) {
		this.message = message;
		this.success = success;
	}

	public Message(T entity, String message, boolean success, Integer status) {
		this.entity = entity;
		this.message = message;
		this.success = success;
		this.status = status;
	}

	public Message(String message, boolean success, Integer status) {
		this.message = message;
		this.success = success;
		this.status = status;
	}

	public Message() {
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
